var iframeId = formatURL('iframeId',url);
var designEngine = parent.parent.document.getElementById(iframeId);
if( hash_url ) setStyle();
function setStyle(){
	var size = hash_url.split("#")[1].split("|");
	var hash_width = size[0]+"px";
	var hash_height = parseInt(size[1]) +"px";
	designEngine.style.height = hash_height ;
}

function formatURL(strName,strHref){
	strHref = strHref ? strHref : window.location.href;
	strHref = strHref.split('#')[0];
	var intPos = strHref.indexOf("?"); 
	var strRight = strHref.substr(intPos + 1); 
	var arrTmp = strRight.split("&");
	for(var i = 0; i < arrTmp.length; i++){ 
		var arrTemp = arrTmp[i].split("=");
		if(arrTemp[0].toUpperCase() == strName.toUpperCase())
			return arrTemp[1]; 
	}			
	return "";	
}
